﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace ETC.DLEDLightingSystemPlus.Models
{
    public class ConfigFileModel : Bandit.UI.MVVM.NotifyObject
    {
        private string _Name;
        /// <summary>
        /// Name
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                OnPropertyChanged("Name");
            }
        }

        private string _FileName;
        /// <summary>
        /// FileName
        /// </summary>
        public string FileName
        {
            get { return _FileName; }
            set
            {
                _FileName = value;
                OnPropertyChanged("FileName");
            }
        }
        public override string ToString()
        {
            return string.Format("{0}{1}", this.Name, string.IsNullOrWhiteSpace(this.Name) ? "" : " [" + Path.GetFileName(this.FileName) + "]");
        }
    }
}
